import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { FormsModule,ReactiveFormsModule } from '@angular/forms';

import { AlertModule, AccordionModule } from 'ng2-bootstrap';
import { userRoutesConfig } from "./user.routes";
import { ButtonsModule } from 'ng2-bootstrap';

import { UserDetailComponent } from "./user-detail/user-detail.component";
import { UserLoginComponent } from "./user-login/user-login.component";
import { UserComponent } from "./user.component";
import { UserRegistComponent } from "./user-regist/user-regist.component";
import { UserCollectionComponent } from "./user-collection/user-collection.component";
import { UserForgetpasswordComponent } from "./user-forgetpassword/user-forgetpassword.component";
import { UserAbstractComponent } from "./user-abstract/user-abstract.component";
import {ChartComponent} from "../common/chart/chart.component";
import {chartDrives} from "../common/chart/shared/chart.drives";//整理出共享模块放到一个模块中

@NgModule({
  declarations: [
    UserLoginComponent,
    UserComponent,
    UserDetailComponent,
    UserRegistComponent,
    UserForgetpasswordComponent,
    UserCollectionComponent,
    UserAbstractComponent,
    ChartComponent,
    chartDrives
  ],
  imports: [
    CommonModule,
    ReactiveFormsModule,
    FormsModule,
    RouterModule.forChild(userRoutesConfig),
    ButtonsModule.forRoot(),
    AlertModule.forRoot()
  ],
  exports: [
    UserAbstractComponent
  ],
  providers: [
     
  ]
})
export class UserModule { }